import { Provide} from '@midwayjs/decorator';
import { CoolController, BaseController } from '@cool-midway/core';
import { UserActionLogEntity } from '../../entity/userLog';
import { UserInfoEntity } from '../../entity/info';


/**
 * 系统日志
 */
@Provide()
@CoolController({
  api: ['page','delete'],
  entity: UserActionLogEntity,
  pageQueryOp: {
    keyWordLikeFields: ['b.nickname', 'a.params', 'a.ip_addr'],
    select: ['a.*, b.nickname','b.headimgurl'],
    leftJoin: [
      {
        entity: UserInfoEntity,
        alias: 'b',
        condition: 'a.userId = b.id',
      },
    ],
  },
})
export class UserActionLogController extends BaseController {
 
}
